package org.destinyshine.cricket.jaxbmodel;

/**
 * Created by destinyliu on 2016/2/27.
 */

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import java.util.List;

/**
 *
 */
@XmlRootElement(name = "web-app")
@XmlType(propOrder = {
        "description",
        "contextParams",
        "listeners",
        "filters",
        "filterMappings",
        "servlets",
        "servletMappings"}
)
public class WebAppElement {

    private String displayName;

    private String description;

    private List<ContextParamElement> contextParams;

    private List<ListenerElement> listeners;

    private List<FilterElement> filters;

    private List<FilterMappingElement> filterMappings;

    private List<ServletElement> servlets;

    private List<ServletMappingElement> servletMappings;

    @XmlElement(name = "display-name")
    public String getDisplayName() {
        return displayName;
    }

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    @XmlElement(name = "description")
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @XmlElement(name = "context-param")
    public List<ContextParamElement> getContextParams() {
        return contextParams;
    }

    public void setContextParams(List<ContextParamElement> contextParams) {
        this.contextParams = contextParams;
    }

    @XmlElement(name = "listener", required = false)
    public List<ListenerElement> getListeners() {
        return listeners;
    }

    public void setListeners(List<ListenerElement> listeners) {
        this.listeners = listeners;
    }

    @XmlElement(name = "filter")
    public List<FilterElement> getFilters() {
        return filters;
    }

    public void setFilters(List<FilterElement> filters) {
        this.filters = filters;
    }

    @XmlElement(name = "filter-mapping")
    public List<FilterMappingElement> getFilterMappings() {
        return filterMappings;
    }

    public void setFilterMappings(List<FilterMappingElement> filterMappings) {
        this.filterMappings = filterMappings;
    }

    @XmlElement(name = "servlet")
    public List<ServletElement> getServlets() {
        return servlets;
    }

    public void setServlets(List<ServletElement> servlets) {
        this.servlets = servlets;
    }

    @XmlElement(name = "servlet-mapping")
    public List<ServletMappingElement> getServletMappings() {
        return servletMappings;
    }

    public void setServletMappings(List<ServletMappingElement> servletMappings) {
        this.servletMappings = servletMappings;
    }
}
